﻿<%@ Page Language="C#" MasterPageFile="~/adm-Master.Master" AutoEventWireup="true" CodeBehind="FAQ.aspx.cs" Inherits="BookStore.admin.FAQ" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="PageName">FAQ Manager</div>
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" 
                onclick="lbtRefreshB_Click">Refesh</asp:LinkButton>
        </li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">
            Back</a> </li> 
    </ul>
</div>
    <asp:GridView ID="gvFAQ" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BorderWidth="1px" Width="100%" 
        onrowdeleting="gvFAQ_RowDeleting" 
        onselectedindexchanging="gvFAQ_SelectedIndexChanging" 
        onpageindexchanging="gvFAQ_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="faqID" HeaderText="faqID" />
            <asp:BoundField DataField="faqName" HeaderText="faq  Name" />
            <asp:BoundField DataField="faqContent" HeaderText="faq Contents" />
            <asp:CommandField ShowDeleteButton="True" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server" 
                onclick="lbtRefreshB_Click" >Refesh</asp:LinkButton>
        </li> 
        <li>
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">
            Back</a> </li> 
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server">Save</asp:LinkButton>
                </li> 
                <li> 
                    <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" 
                        CausesValidation="False" onclick="lbtBackT_Click">Back</asp:LinkButton>
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
        <th>
       </th>
        <td>
           <asp:TextBox ID="txtfaqID" runat="server" CssClass="Text" Visible="False"></asp:TextBox>
        </td>
     </tr>
    <tr> 
       <th> 
            <asp:Label ID="lblfaqName" runat="server" Text="FAQ Name :"></asp:Label>
       </th>
       <td>
            <asp:TextBox ID="txtfaqName" runat="server" CssClass="Text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtfaqName" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
       </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblfaqContent" runat="server" Text="Content :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtContent" runat="server" CssClass="Text" Height="151px" 
                TextMode="MultiLine" Width="522px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtContent" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
     <tr> 
         <td class="Control" colspan="2">
             <ul>
                 <li>
                 <asp:LinkButton CssClass="uupdate" ID="lbtUpdate" runat="server" 
                         onclick="lbtUpdate_Click">Save</asp:LinkButton></li> <li> 
                 <asp:LinkButton CssClass="uback" ID="lbtBack" runat="server" 
                         CausesValidation="False" OnClick="lbtBackT_Click">Back</asp:LinkButton>
                 </li> 
             </ul>
         </td> 
     </tr>
</table>
</asp:Panel>
</asp:Content>
